/*
 * VentanaAdministradorInformes.java
 *
 * Created on 25 de septiembre de 2002, 07:04 AM
 */

package everest3.reportes;

import java.awt.event.ActionEvent; 
import javax.swing.JButton; 
import javax.swing.JFrame; 
import javax.swing.JPanel;

/**
 *
 * @author  root
 */
public class VentanaAdministradorInformes extends javax.swing.JFrame {
    
    /** Creates new form VentanaAdministradorInformes */
    public VentanaAdministradorInformes() {
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        JPanelTipoInforme = new javax.swing.JPanel();
        InventarioMaterialBibliografico = new javax.swing.JButton();
        BaseDatosClientes = new javax.swing.JButton();
        ReservaDiaria = new javax.swing.JButton();
        Cerrar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Administracion de Informes");
        setResizable(false);
        JPanelTipoInforme.setBorder(javax.swing.BorderFactory.createTitledBorder("Tipo de Informe"));
        InventarioMaterialBibliografico.setText("Inventario de Material Bibliografico");
        InventarioMaterialBibliografico.setToolTipText("Inventario de Material Bibliografico");

        BaseDatosClientes.setText("Base de Datos de Clientes");
        BaseDatosClientes.setToolTipText("Base de Datos De Clientes");

        ReservaDiaria.setText("Reserva Diaria");
        ReservaDiaria.setToolTipText("Reserva Diaria");

        javax.swing.GroupLayout JPanelTipoInformeLayout = new javax.swing.GroupLayout(JPanelTipoInforme);
        JPanelTipoInforme.setLayout(JPanelTipoInformeLayout);
        JPanelTipoInformeLayout.setHorizontalGroup(
            JPanelTipoInformeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JPanelTipoInformeLayout.createSequentialGroup()
                .addContainerGap(20, Short.MAX_VALUE)
                .addGroup(JPanelTipoInformeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(ReservaDiaria, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(BaseDatosClientes, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(InventarioMaterialBibliografico, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap())
        );
        JPanelTipoInformeLayout.setVerticalGroup(
            JPanelTipoInformeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JPanelTipoInformeLayout.createSequentialGroup()
                .addComponent(InventarioMaterialBibliografico)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(BaseDatosClientes)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(ReservaDiaria)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        Cerrar.setText("Cerrar");
        Cerrar.setToolTipText("Cerrar");
        Cerrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CerrarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(JPanelTipoInforme, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(192, Short.MAX_VALUE)
                .addComponent(Cerrar)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(JPanelTipoInforme, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Cerrar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void CerrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CerrarActionPerformed
// TODO add your handling code here:
        
        String   s = evt.getActionCommand();
           if(s == "Cerrar")
           {
              System.exit(0);
           }
    }//GEN-LAST:event_CerrarActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaAdministradorInformes().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton BaseDatosClientes;
    private javax.swing.JButton Cerrar;
    private javax.swing.JButton InventarioMaterialBibliografico;
    private javax.swing.JPanel JPanelTipoInforme;
    private javax.swing.JButton ReservaDiaria;
    // End of variables declaration//GEN-END:variables
    
}
